stylecontext: Store the right style in the cache
authorBenjamin Otte <otte@redhat.com>
Mon, 9 Mar 2015 22:53:43 +0000 (23:53 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Mar 2015 22:54:41 +0000 (23:54 +0100)
Store the newly computed style, not the old and wrong one.

Fixes HighContrast menuitem color sometimes being black-on-black for
selected items.

gtk/gtkstylecontext.c

index 59e158fba81abb1385cb422ef16cd5c00535d777..481048651f81e240552f157fd8088ecd7f88aa7c 100644 (file)
@@ -829,7 +829,7 @@ update_properties (GtkStyleContext             *context,
 
   gtk_widget_path_free (path);
 
-  store_in_global_parent_cache (context, parent, decl, style);
+  store_in_global_parent_cache (context, parent, decl, result);
 
   return result;
 }